<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="kuakao" uri="http://www.kuakao.net/tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>详情</title>
    <link href="${pageContext.request.contextPath}/style/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
 <div class="mainCon">
  <div class="mCon">
  <div class="mCon_tab">
   <ul>   
    <li><span class="mCon_1cuta">详情</span></li>
	<li><span class="mCon_1cuta"><a href="javascript:history.back(-1);">返回</a></span></li>
   </ul>
  </div>
  <br/>
 
    <div class="main_list">
      <table width="100%" border="1" cellspacing="0" cellpadding="0">
      	<tr>
      		<td class="main_title main_title2 td_center">产品ID</td><td>${baseinfo.productid}</td>
      		<td class="main_title main_title2 td_center">产品名称</td><td>${baseinfo.productName}</td>
      	</tr>
      	<tr>
      		<td class="main_title main_title2 td_center">时间</td><td><fmt:formatDate value="${baseinfo.flowtime}</td>
      		<td class="main_title main_title2 td_center">出入类型</td><td>${baseinfo.flowtype==1?'入库':'出库'}</td>
      	</tr>
      	<tr>
      		<td class="main_title main_title2 td_center">数量</td><td>${baseinfo.flownum}</td>
      		<td class="main_title main_title2 td_center">即时余量</td><td>${baseinfo.total}</td>
      	</tr>
		<c:if test="${baseinfo.flowtype==1}">
		<tr>
      		<td class="main_title main_title2 td_center">是否购买</td><td>${baseinfo.buy==1?'购入':'非购入'}</td>
      		<td class="main_title main_title2 td_center">&nbsp;</td><td>&nbsp;</td>
      	</tr>
		<c:if test="${baseinfo.buy==1}">
		<tr>
      		<td class="main_title main_title2 td_center">供货商</td><td>${baseinfo.ghsid}</td>
      		<td class="main_title main_title2 td_center">单价</td><td>${baseinfo.price}</td>
      	</tr>
		</c:if>
		<c:if test="${baseinfo.buy==2}">
		<tr>
      		<td class="main_title main_title2 td_center">原料</td><td>${baseinfo.materialid}</td>
      		<td class="main_title main_title2 td_center">&nbsp;</td><td>&nbsp;</td>
      	</tr>
		</c:if>
		</c:if>
		<c:if test="${baseinfo.flowtype==2}">
		<tr>
      		<td class="main_title main_title2 td_center">出库订单ID</td><td>${baseinfo.orderid}</td>
      		<td class="main_title main_title2 td_center">&nbsp;</td><td>&nbsp;</td>
      	</tr>
		</c:if>
      	<tr>
      		<td class="main_title main_title2 td_center">描述</td><td colspan="3">${baseinfo.sdesc}</td>
      	</tr>      	
      	
      </table>
     </div>
  <div class="clear"></div>  
  </div>
  <div class="scxz">
      <input class="fx1" type="button" onclick="history.back(-1);" value="返 回" />
  </div>
  <div class="clear"></div>
 </div>
</body>
</html>


